// 生成最近30天的日期
const generateDates = () => {
  const dates = []
  for (let i = 29; i >= 0; i--) {
    const date = new Date()
    date.setDate(date.getDate() - i)
    dates.push(date.toISOString().split('T')[0])
  }
  return dates
}

// 销售趋势数据
export const salesData = generateDates().map(date => ({
  date,
  amount: Math.floor(Math.random() * 1000000)
}))

// 热销商品数据
export const hotProducts = [
  { value: 1048, name: '智能手机' },
  { value: 735, name: '笔记本电脑' },
  { value: 580, name: '智能手表' },
  { value: 484, name: '无线耳机' },
  { value: 300, name: '平板电脑' },
  { value: 250, name: '智能音箱' },
  { value: 200, name: '游戏主机' },
  { value: 180, name: '相机' },
  { value: 150, name: '智能家居' },
  { value: 100, name: '其他' }
]

// 地区销售数据
export const regionData = [
  { name: '北京', value: 1000 },
  { name: '上海', value: 1200 },
  { name: '广东', value: 1500 },
  { name: '江苏', value: 900 },
  { name: '浙江', value: 800 },
  { name: '四川', value: 600 },
  { name: '湖北', value: 500 },
  { name: '河南', value: 400 },
  { name: '山东', value: 700 },
  { name: '福建', value: 300 }
] 